package com.banmoon.visitor.element;

import com.banmoon.visitor.visitor.Operation;
import lombok.Data;

/**
 * 元素（Element）
 */
@Data
public abstract class Person {

    private String name;

    public Person(String name) {
        this.name = name;
    }

    public abstract void accept(Operation operation);
}
